<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <meta http-equiv="Content-Style-Type" content="text/css" />
    <!-- MOTW-DISABLED saved from url=(0014)about:internet -->
    <title>How to associate a Java class with a report element</title>
    <link rel="StyleSheet" href="css/ScriptingWithJava.css" type="text/css" media="all" />
    <link rel="StyleSheet" href="css/webworks.css" type="text/css" media="all" />
    <link rel="StyleSheet" href="webworks.css" type="text/css" media="all" />
    <script type="text/javascript" language="JavaScript1.2">
      <!--
        var  WebWorksRootPath = "";
      // -->
    </script>
  </head>
  <body>
    <div style="text-align: left;">
      <table cellspacing="0" summary="">
        <tr>
          <td>
            <a href="ScriptingWithJava.23.2.html"><img src="images/prev.gif" alt="Previous" border="0" /></a>
          </td>
          <td>
            <a href="ScriptingReference.24.1.html"><img src="images/next.gif" alt="Next" border="0" /></a>
          </td>
        </tr>
      </table>
    </div>
    <hr align="left" />
    <blockquote>
      <h4 class="N_hth_HowToHelp"><a name="190654">How to associate a Java class with a report element</a></h4>
      <p class="b_Body"><a name="190655">The steps in this procedure make the following assumptions:</a></p>
      <div class="b1_Bullet1_outer" style="margin-left: 0pt">
        <table border="0" cellspacing="0" cellpadding="0" summary="" role="presentation">
          <tr style="vertical-align: baseline">
            <td>
              <div class="b1_Bullet1_inner" style="width: 14.1732pt; white-space: nowrap">
                <img src="Bullet.png" alt="*" border="0" width="6" height="6" />
              </div>
            </td>
            <td width="100%">
              <div class="b1_Bullet1_inner"><a name="190657">A report design is open in the Report Design perspective.</a></div>
            </td>
          </tr>
        </table>
      </div>
      <div class="b1_Bullet1_outer" style="margin-left: 0pt">
        <table border="0" cellspacing="0" cellpadding="0" summary="" role="presentation">
          <tr style="vertical-align: baseline">
            <td>
              <div class="b1_Bullet1_inner" style="width: 14.1732pt; white-space: nowrap">
                <img src="Bullet.png" alt="*" border="0" width="6" height="6" />
              </div>
            </td>
            <td width="100%">
              <div class="b1_Bullet1_inner"><a name="257261">The report design includes a scriptable report item, such as a label.</a></div>
            </td>
          </tr>
        </table>
      </div>
      <div class="b1_Bullet1_outer" style="margin-left: 0pt">
        <table border="0" cellspacing="0" cellpadding="0" summary="" role="presentation">
          <tr style="vertical-align: baseline">
            <td>
              <div class="b1_Bullet1_inner" style="width: 14.1732pt; white-space: nowrap">
                <img src="Bullet.png" alt="*" border="0" width="6" height="6" />
              </div>
            </td>
            <td width="100%">
              <div class="b1_Bullet1_inner"><a name="190658">A Java class containing event handler methods for the scriptable report item is visible to BIRT.</a></div>
            </td>
          </tr>
        </table>
      </div>
      <div class="N_n1_NumList1_outer" style="margin-left: 0pt">
        <table border="0" cellspacing="0" cellpadding="0" summary="" role="presentation">
          <tr style="vertical-align: baseline">
            <td>
              <div class="N_n1_NumList1_inner" style="width: 14.1732pt; white-space: nowrap">
                <span class="zAuto_0023Format">1&nbsp;&nbsp;</span>
              </div>
            </td>
            <td width="100%">
              <div class="N_n1_NumList1_inner"><a name="190659">In Outline, select the report element for which an event handler class is visible to BIRT, as shown in </a><a href="#212302" title="How to associate a Java class with a report element">Figure&nbsp;23-6</a>.</div>
            </td>
          </tr>
        </table>
      </div>
      <p class="i2_Image2"><a name="190663"><img class="Default" src="images/SelectLabel.png" style="display: inline; float: none; left: 0.0; top: 0.0" alt="Figure 23-6 Selecting a report element" /></a></p>
      <div class="fc2_FigCall2Title">
        <b class="Bold">Figure&nbsp;23-6&nbsp;&nbsp;</b><a name="212302">Selecting a report element </a></div>
      <div class="N_n1_NumList1_outer" style="margin-left: 0pt">
        <table border="0" cellspacing="0" cellpadding="0" summary="" role="presentation">
          <tr style="vertical-align: baseline">
            <td>
              <div class="N_n1_NumList1_inner" style="width: 14.1732pt; white-space: nowrap">
                <span class="zAuto_0023Format">2&nbsp;&nbsp;</span>
              </div>
            </td>
            <td width="100%">
              <div class="N_n1_NumList1_inner"><a name="190664">In Property Editor, choose Event Handler, as shown in </a><a href="#212318" title="How to associate a Java class with a report element">Figure&nbsp;23-7</a>.</div>
            </td>
          </tr>
        </table>
      </div>
      <p class="i2_Image2"><a name="190725"><img class="Default" src="images/PropertyEditorEventHandler.png" style="display: inline; float: none; left: 0.0; top: 0.0" alt="Figure 23-7 Event handler properties" /></a></p>
      <div class="fc2_FigCall2Title">
        <b class="Bold">Figure&nbsp;23-7&nbsp;&nbsp;</b><a name="212318">Event handler properties</a></div>
      <div class="N_n1_NumList1_outer" style="margin-left: 0pt">
        <table border="0" cellspacing="0" cellpadding="0" summary="" role="presentation">
          <tr style="vertical-align: baseline">
            <td>
              <div class="N_n1_NumList1_inner" style="width: 14.1732pt; white-space: nowrap">
                <span class="zAuto_0023Format">3&nbsp;&nbsp;</span>
              </div>
            </td>
            <td width="100%">
              <div class="N_n1_NumList1_inner"><a name="257270">Choose Browse. Class Selection shows available event handler classes.</a></div>
            </td>
          </tr>
        </table>
      </div>
      <div class="N_n1_NumList1_outer" style="margin-left: 0pt">
        <table border="0" cellspacing="0" cellpadding="0" summary="" role="presentation">
          <tr style="vertical-align: baseline">
            <td>
              <div class="N_n1_NumList1_inner" style="width: 14.1732pt; white-space: nowrap">
                <span class="zAuto_0023Format">4&nbsp;&nbsp;</span>
              </div>
            </td>
            <td width="100%">
              <div class="N_n1_NumList1_inner"><a name="257333">Select the event handler class that extends the BIRT ROM event adapter class, as shown in </a><a href="#257378" title="How to associate a Java class with a report element">Figure&nbsp;23-8</a>. Then, choose OK.</div>
            </td>
          </tr>
        </table>
      </div>
      <p class="i2_Image2"><a name="257343"><img class="Default" src="images/EventHandlerSelection.png" style="display: inline; float: none; left: 0.0; top: 0.0" alt="Figure 23-8 Selecting the event handler class" /></a></p>
      <div class="fc2_FigCall2Title">
        <b class="Bold">Figure&nbsp;23-8&nbsp;&nbsp;</b><a name="257378">Selecting the event handler class</a></div>
      <div class="N_i_Indent1"><a name="257297">The fully qualified name of the event handler class appears in Property Editor, as shown in </a><a href="#257672" title="How to associate a Java class with a report element">Figure&nbsp;23-9</a>.</div>
      <p class="i2_Image2"><a name="257670"><img class="Default" src="images/PropertyEditorEventHandler2.png" style="display: inline; float: none; left: 0.0; top: 0.0" alt="Figure 23-9 The event handler class name" /></a></p>
      <div class="fc2_FigCall2Title">
        <b class="Bold">Figure&nbsp;23-9&nbsp;&nbsp;</b><a name="257672">The event handler class name</a></div>
      <div class="N_n1_NumList1_outer" style="margin-left: 0pt">
        <table border="0" cellspacing="0" cellpadding="0" summary="" role="presentation">
          <tr style="vertical-align: baseline">
            <td>
              <div class="N_n1_NumList1_inner" style="width: 14.1732pt; white-space: nowrap">
                <span class="zAuto_0023Format">5&nbsp;&nbsp;</span>
              </div>
            </td>
            <td width="100%">
              <div class="N_n1_NumList1_inner"><a name="298661">Preview the report. The label’s background color is red.</a></div>
            </td>
          </tr>
        </table>
      </div>
    </blockquote>
    <hr align="left" />
    <table align="right" summary="">
      <tr>
        <td class="WebWorks_Company_Name_Bottom">
          <a href="notices.html">(c) Copyright Actuate Corporation 2013</a>
        </td>
      </tr>
    </table>
  </body>
</html>